Window.CloseButton Property
Read-Only
Syntax
CloseButton as Boolean
If True, the window will include a Close button in its Title Bar. Since this is the name of a property, you cannot use "CloseButton" as the name of a button or any other type of object.